{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% block title %}查看博文 - Flasky Blog{% endblock %}
{% block page_content %}
{% include '_posts.html' %}
<h4 id="comments">评论</h4>
{% if current_user.can(Permission.COMMENT) %}
    <div class="comment-form">
        {{ wtf.quick_form(form) }}
    </div>
{% endif %}
{% include '_comments.html' %}
{% if pagination.pages > 1 %}
    {{ macros.pagination_widget(pagination, '.post', fragment='#comments', id=posts[0].id) }}
{% endif %}
{% endblock %}